package com.lottery.material.service.portal.user;

import com.lottery.material.pojo.portaluser.FollowInfo;
import com.lottery.material.vo.portal.user.FollowUserVo;

import java.util.List;

/**
 * Description:    用户关注服务接口
 * Author:         sunny
 * CreateDate:     2019-04-15 14:37
 */
public interface FollowInfoService {

    /**
     * description: 删除用户关注记录
     * author sunny
     * createDate 2019-04-15 下午 2:39
     * @param followInfo
     */
    Integer deleteUserFollow(FollowInfo followInfo) throws Exception;

    /**
     * description: 保存用户关注记录
     * author sunny
     * createDate 2019-04-15 下午 2:58
     * @param followInfo
     */
    Integer saveUserFollow(FollowInfo followInfo) throws Exception;

    /**
     * 根据关注者被关注者查询关注信息
     * @param userId
     * @param hisUserId
     * @return
     */
    FollowInfo findByUserIdAndFollowUserId(String userId,String hisUserId);

    /**
     * @Author 肖拔赟
     * @Description 6.1	获取关注的达人列表接口
     * @Date Created on 2019-04-25 11:08
     * @param userId userId
     * @param currentPage 页码
     * @return
     */
    List<FollowUserVo> getFollowListListPage (String userId, Integer currentPage);


    /**
     * @Author 肖拔赟
     * @Description 6.2	获取达人排行榜接口
     * @Date Created on 2019-04-26 10:06
     * @param userId userId
     * @param currentPage 页码
     * @return List<FollowUserVo>
     */
    List<FollowUserVo> getFollowRankingListPage(String userId, Integer currentPage);

}
